home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / HorizontalSpacer.h < prev    next >
Text File  |  1997-06-28  |  493b  |  28 lines

  1. // HorizontalSpacer.h
  2.  
  3. #ifndef HorizontalSpacer_h
  4. #define HorizontalSpacer_h
  5.  
  6. #ifndef SolidView_h
  7. #include "SolidView.h"
  8. #endif
  9.  
  10. class HorizontalSpacer: public SolidView
  11.   {
  12.     private:
  13.         const uint16 width;
  14.     
  15.     public:
  16.         HorizontalSpacer( uint16 theWidth,
  17.                                 const RGBColor& color = NamedColors::white )
  18.           : SolidView( color ),
  19.              width( theWidth )
  20.           {}
  21.         
  22.         virtual uint16 MinimumWidth() const;
  23.         virtual uint16 MaximumWidth() const;
  24.         virtual uint16 BestHeight() const;
  25.   };
  26.  
  27. #endif
  28.